package com.wing.res.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.res.model.entity.ResProEchnologyParam;
import com.wing.res.model.entity.ResProductDraw;
import com.wing.res.model.request.ProcessProjectData;
import com.wing.res.model.response.ResProTaskRecordSearchVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @version 1.1.0
 * @Author hz
 * @Date 2024-09-23 20:57
 **/
@Mapper
public interface ResProEchnologyParamDao extends BaseMapper<ResProEchnologyParam> {

    /**
     * 根据物料id查询出工序
     * @param taskId
     * @return
     */
    List<ProcessProjectData> getOldVersionInfoById(@Param("taskId") Long taskId);

    /**
     * 查询个数 -->
      */
    Integer countVersion(@Param("taskId") Long taskId);

    /**
     * 查询记录
     * @param pg
     * @param map
     * @return
     */
    List<ResProTaskRecordSearchVo> pageList4app(@Param("page") Page<ResProTaskRecordSearchVo> pg,@Param("map") Map<String, Object> map);

    /**
     * 查询recordId
     * @param recordId 记录id
     * @return
     */
    List<ProcessProjectData> getVersionInfoBy(@Param("recordId") String recordId);
}
